package com.ezhuan.users.pojo;

import java.util.Date;

import com.ezhuan.common.pojo.BasePojo;

/**
 * 用户提现历史资料
 * 
 * @author wangshSxt
 *
 */
public class AWithdrawHistory extends BasePojo<AWithdrawHistory>
{
	private int withdrawId;
	private String name;
	private String extend1;
	private double money;
	private byte status;
	private Date createTime;
	private Date updateTime;

	/* 关联对象 */
	private AUsers usersObject;

	/* 字符串描述 */
	private String statusStr;

	@Override
	public String getTableName()
	{
		return "a_withdraw_history";
	}

	public String getStatusStr()
	{
		// 根据状态值获取字符串描述
		AWithdrawHistoryEnum[] withdrawEnums = AWithdrawHistoryEnum.values();
		for (int i = 0; i < withdrawEnums.length; i++)
		{
			AWithdrawHistoryEnum withdrawEnum = withdrawEnums[i];
			if (withdrawEnum.toString().startsWith("STATUS_"))
			{
				// 表示是状态的标识
				if (withdrawEnum.getStatus() == this.getStatus())
				{
					this.statusStr = withdrawEnum.getName();
					break;
				}
			}
		}
		return statusStr;
	}

	public int getWithdrawId()
	{
		return withdrawId;
	}

	public void setWithdrawId(int withdrawId)
	{
		this.withdrawId = withdrawId;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getExtend1()
	{
		return extend1;
	}

	public void setExtend1(String extend1)
	{
		this.extend1 = extend1;
	}

	public double getMoney()
	{
		return money;
	}

	public void setMoney(double money)
	{
		this.money = money;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public AUsers getUsersObject()
	{
		return usersObject;
	}

	public void setUsersObject(AUsers usersObject)
	{
		this.usersObject = usersObject;
	}

}
